<?php include(FULL_HTML_VIEWS_PATH . '/common/page_header.php'); ?>
<?php if (isset($debug_page)): ?>
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="css/main.css" rel="stylesheet">
<?php endif; ?>
<?php if (isset($_SESSION['helper_id']) && !empty($_SESSION['helper_id'])): ?>

<div class="main-content">
    <div class="main-content-inner">

        <div class="row">
            <?php include(FULL_HTML_VIEWS_PATH . '/common/page_menu.php'); ?>
            <div class="main">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <?php include(FULL_HTML_VIEWS_PATH . '/common/page_ur_here.php'); ?>
                        </ol>
                    </div>
                </div>
                <div class="center-block">&nbsp;</div>
                <div class="row">
                    <div class="col-sm-12">
                        <?php include('message_body.php'); ?>
                    </div>
                </div>
            </div>
        </div>
        <!--main row-->
        <div class="center-block" style="height:30px;"></div>
    </div>
    <?php else: ?>
    <div class="center-block">&nbsp;</div>
    <div class="container-fluid container">
        <div class="row col-sm-8 col-sm-offset-2">
            <?php include('message_body.php'); ?>
            <!--end panel-->


            <!--end row-->
        </div>

        <?php endif; ?>
        <!-- main-content-->

        <?php include(FULL_HTML_VIEWS_PATH . '/common/page_script.html'); ?>
        <script language="JavaScript">
            var seconds = -1;
            if ($('#spanSeconds').length > 0) {
                //seconds = $('#spanSeconds').html();
            }

            $(function () {
                window.setInterval(redirection, 1000);
            })
            function redirection() {
                if (seconds <= 0) {
                    window.clearInterval();
                    return;
                }
                seconds--;
                $('#spanSeconds').html(seconds);
                if (seconds == 0) {
                    window.clearInterval();
                    //alert($('#links a:eq(0)').attr('href'));
                    location.href = $('#links a:eq(0)').attr('href');
                }
            }
        </script>
        <?php include(FULL_HTML_VIEWS_PATH . '/common/page_footer.php'); ?>
